package com.icode50.spring.service.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ListOperations;
import org.springframework.stereotype.Service;

import com.icode50.spring.entity.ProgressModel;
import com.icode50.spring.mapper.ProgressModelMapper;
import com.icode50.spring.service.ProgressModelService;

@Service
public class ProgressModelServiceImpl implements ProgressModelService {

    @Autowired
    private ProgressModelMapper progressModelMapper;

    @Autowired
    private ListOperations<String,Object> listOperations;

	@Override
	public ProgressModel getProgressModelById(Integer progressModelId) {
		// TODO Auto-generated method stub
		return progressModelMapper.getProgressModelById(progressModelId);
	}

	@Override
	public ProgressModel getProgressModelByModelKey(String modelKey) {
		// TODO Auto-generated method stub
		return progressModelMapper.getProgressModelByModelKey(modelKey);
	}

	@Override
	public List<ProgressModel> getProgressModelList(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return progressModelMapper.getProgressModelList(paramMap);
	}

	@Override
	public Integer addProgressModel(ProgressModel progressModel) {
		// TODO Auto-generated method stub
		return progressModelMapper.addProgressModel(progressModel);
	}

	@Override
	public boolean updateProgressModel(ProgressModel progressModel) {
		// TODO Auto-generated method stub
		return progressModelMapper.updateProgressModel(progressModel);
	}

	@Override
	public boolean deleteProgressModelById(String progressModelId) {
		// TODO Auto-generated method stub
		return progressModelMapper.deleteProgressModelById(progressModelId);
	}

	@Override
	public boolean deleteProgressModelByModelKey(String modelKey) {
		// TODO Auto-generated method stub
		return progressModelMapper.deleteProgressModelByModelKey(modelKey);
	}

}
